package com.example.onenetdht11.util;

import android.os.Handler;

public class MyTimer {
    //定时更新界面数据
    private Handler handler = new Handler();
    private Runnable runnable = new Runnable() {
        public void run () {
            handler.postDelayed(this,5000); //每隔0.5秒刷新一次
            //在这里更新数据
        }
    };

}
